package com.adou.second.day11;
/**
 * 生产者/消费者
 * @author Administrator
 *
 */
public class BoxDemo {

	public static void main(String[] args) {
		//
		Box box = new Box();
		
		//
		Product product = new Product(box);
		
		//
		Customer customer = new Customer(box);
		
		
		Thread thread1 = new Thread(product);
		thread1.start();
		
		Thread thread2 = new Thread(customer);
		thread2.start();
		
		
	}

}
